package top.ddandang.blog.model.vo;

import top.ddandang.blog.model.pojo.Comment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 封装显示评论的实体类
 * </p>
 *
 * @author D
 * @version 1.0
 * @date 2020/7/14 15:16
 */
@Data
@Accessors(chain = true)
public class CommentVo {

    @ApiModelProperty(value = "评论Id")
    private Integer id;

    @ApiModelProperty(value = "父评论Id")
    private Integer parentCommentId;

    @ApiModelProperty(value = "用户Id")
    private Integer userId;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "是否置顶")
    private Boolean topping;

    @ApiModelProperty(value = "评论时间")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "用户昵称")
    private String nickname;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "是否是管理员")
    private Boolean position;

    @ApiModelProperty(value = "回复的评论")
    private List<Comment> childrenComments;
}
